#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

.hole {
  position: relative;
  width: 100%;
  height: 100%;
  background: #3a2410;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 
    inset 0 10px 20px rgba(0,0,0,0.6),
    inset 0 -5px 10px rgba(0,0,0,0.4);
  border: 4px solid #2a1808;
}

.mole {
  position: absolute;
  width: 80%;
  height: 80%;
  left: 10%;
  bottom: -100%;
  transition: bottom 0.3s ease-out;
  pointer-events: none;
}

.mole::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center 30%, #cc8e66 0%, #8B4513 100%);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 
    inset 0 -4px 0 rgba(0,0,0,0.2),
    inset 0 4px 8px rgba(255,255,255,0.3);
}

.mole::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 20%, #000 0, #000 4px, transparent 5px),
    radial-gradient(circle at 70% 20%, #000 0, #000 4px, transparent 5px),
    radial-gradient(circle at 30% 20%, #fff 0, #fff 2px, transparent 3px),
    radial-gradient(circle at 70% 20%, #fff 0, #fff 2px, transparent 3px);
}

.hole.active .mole {
  bottom: 10%;
}

.hole.active:active .mole {
  transform: scale(0.95);
  transition: transform 0.1s;
}

/* 整个应用容器 */
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #a8e6cf 0%, #90EE90 100%);
  padding: 20px;
}

/* 游戏标题 */
h1 {
  color: #2c5530;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* 游戏主容器 */
.game-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 游戏板样式 */
.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3列 */
  grid-gap: 20px;                         /* 间距 */
  width: 400px;                          /* 固定宽度 */
  height: 400px;                         /* 固定高度 */
  background: #90b566;
  padding: 20px;
  border-radius: 15px;
  margin: 20px auto;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
